<%@include
    file="/WEB-INF/jsp/taglibs/taglibs_core.jsp"
%>
<stripes:layout-render name="/WEB-INF/jsp/layouts/main.jsp"
title="Input names">
<stripes:layout-component name="body">
    <stripes:messages />

    <stripes:form name="inputNames" beanclass="com.objecteffects.ilmp.web.action.InputNamesActionBean">
        <stripes:errors/>

        <table class="display">
            <c:forEach var="i" begin="0" end="4" varStatus="counter">
                <tr>
                    <td>
                        <stripes:label for="names[${counter.index}].name">
                            Name ${counter.count}
                        </stripes:label>
                    </td>
                    <td>
                        <stripes:text
                            name="names[${counter.index}].name"
                            value="${actionBean.names[counter.index].name}"
                        />
                    </td>
                </tr>
            </c:forEach>
        </table>

        <div class="buttons">
            <stripes:submit
                name="save"
                value="Save"
            />
        </div>
    </stripes:form>
</stripes:layout-component>
</stripes:layout-render>
